#include <QApplication>

#include "config.h"
#include "mainwindow.h"

int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
#  if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#  endif
#endif

    QApplication a(argc, argv);

    QApplication::setApplicationVersion(QString(PATHSEPARATOR_VERSION_STR));
    QApplication::setApplicationName(PATHSEPARATOR_APPLICATION_NAME);
    QApplication::setWindowIcon(QIcon(":/icons/logo.png"));

    a.setStyleSheet("file:///:/qss/default_style.qss");

    MainWindow w;
    w.setWindowTitle(QApplication::applicationName());
    w.show();

    return a.exec();
}
